Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions org/w3c/css/properties/CSS3Properties.properties
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,12 @@ nav-up: org.w3c.css.properties.css3.CssNavUp
nav-right: org.w3c.css.properties.css3.CssNavRight
nav-down: org.w3c.css.properties.css3.CssNavDown
nav-left: org.w3c.css.properties.css3.CssNavLeft
overflow-block: org.w3c.css.properties.css3.CssOverflowBlock
overflow-clip-margin: org.w3c.css.properties.css3.CssOverflowClipMargin
overflow-inline: org.w3c.css.properties.css3.CssOverflowInline
overflow-x: org.w3c.css.properties.css3.CssOverflowX
overflow-y: org.w3c.css.properties.css3.CssOverflowY
scrollbar-gutter: org.w3c.css.properties.css3.CssScrollbarGutter
ruby-span: org.w3c.css.properties.css3.CssRubySpan

filter: org.w3c.css.properties.css3.CssFilter
Expand Down
111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssOverflowBlock.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssOverflowBlock extends CssProperty {


/**
* Create a new CssOverflowBlock
*/
public CssOverflowBlock() {
}

/**
* Creates a new CssOverflowBlock
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssOverflowBlock(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssOverflowBlock(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "overflow-block";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssOverflowBlock != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssOverflowBlock = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssOverflowBlock &&
value.equals(((CssOverflowBlock) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getOverflowBlock();
} else {
return ((Css3Style) style).cssOverflowBlock;
}
}
}

111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssOverflowClipMargin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssOverflowClipMargin extends CssProperty {


/**
* Create a new CssOverflowClipMargin
*/
public CssOverflowClipMargin() {
}

/**
* Creates a new CssOverflowClipMargin
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssOverflowClipMargin(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssOverflowClipMargin(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "overflow-clip-margin";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssOverflowClipMargin != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssOverflowClipMargin = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssOverflowClipMargin &&
value.equals(((CssOverflowClipMargin) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getOverflowClipMargin();
} else {
return ((Css3Style) style).cssOverflowClipMargin;
}
}
}

111 changes: 111 additions & 0 deletions org/w3c/css/properties/css/CssOverflowInline.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT W3C, 2026.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css;

import org.w3c.css.parser.CssStyle;
import org.w3c.css.properties.css3.Css3Style;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;

/**
* @since CSS3
*/
public class CssOverflowInline extends CssProperty {


/**
* Create a new CssOverflowInline
*/
public CssOverflowInline() {
}

/**
* Creates a new CssOverflowInline
*
* @param expression The expression for this property
* @throws InvalidParamException
* Expressions are incorrect
*/
public CssOverflowInline(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
throw new InvalidParamException("value",
expression.getValue().toString(),
getPropertyName(), ac);
}

public CssOverflowInline(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}

/**
* Returns the value of this property
*/
public Object get() {
return value;
}


/**
* Returns the name of this property
*/
public final String getPropertyName() {
return "overflow-block";
}

/**
* Returns true if this property is "softly" inherited
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
return inherit.equals(value);
}

/**
* Returns a string representation of the object.
*/
public String toString() {
return value.toString();
}

/**
* Add this property to the CssStyle.
*
* @param style The CssStyle
*/
public void addToStyle(ApplContext ac, CssStyle style) {
if (((Css3Style) style).cssOverflowInline != null)
style.addRedefinitionWarning(ac, this);
((Css3Style) style).cssOverflowInline = this;
}

/**
* Compares two properties for equality.
*
* @param property The other property.
*/
public boolean equals(CssProperty property) {
return (property instanceof CssOverflowInline &&
value.equals(((CssOverflowInline) property).value));
}


/**
* Get this property in the style.
*
* @param style The style where the property is
* @param resolve if true, resolve the style to find this property
*/
public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
if (resolve) {
return ((Css3Style) style).getOverflowInline();
} else {
return ((Css3Style) style).cssOverflowInline;
}
}
}

Loading
Loading